package com.bole.feign;


import com.bole.dto.brand.TbCarSeriesDto;
import com.bole.dto.content.DicContentTypeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface CarSeriesFeign {


    @GetMapping("/series/getCarSeriesInfo")
    List<TbCarSeriesDto> getCarSeriesInfo();

    @PostMapping("/series/saveCarSeriesInfo")
    void saveCarSeriesInfo(@RequestBody TbCarSeriesDto carSeriesDo) ;

    @PostMapping("/series/toUpdate")
    TbCarSeriesDto toUpdate(@RequestParam("id") Long id);

    @PostMapping("/series/updateCarSeriesInfo")
   void updateContentCateInfo(@RequestBody TbCarSeriesDto carSeriesDo);

    @PostMapping("/series/deleteBatch")
    void deleteBatch(@RequestParam("idss") List<Long> idss);

    //通过品牌id查询
    @PostMapping("/series/selectByBrandId")
    List<TbCarSeriesDto> selectByBrandId(@RequestParam("brandId") Long brandId);
}
